#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("duel.in","r",stdin);
freopen("duel.out","w",stdout);
int n;
cin>>n;
long long a[100010],b[100010]={0};
for(int i=1;i<=n;i++){
    cin>>a[i];
}
sort(a+1,a+1+n);
long long c=1,ans=0;
for(int i=1;i<=n;i++){
    b[c]++;
    if(a[i+1]!=a[i]) c++;
}
for(int i=1;i<c;i++){
    b[i]-=b[i+1];
    if(b[i]<0) b[i]=0;
    b[i+1]+=b[i];
}
cout<<b[c];
return 0;
}
